/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-16 19:25:51
 * @Description: 施工许可阶段4 施工招标13
 */
// 接口地址
export const api = window.$crud("construction/bidding");
// 阶段code
export const stageCode = 4;
// 业务code
export const businessCode = 13;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "中标通知书文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "中标通知书发放时间",
    prop: "bidNotificationSendTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "中标单位",
    prop: "bidderEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "标底金额",
    prop: "bidBaseAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "中标金额",
    prop: "bidWinAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "下浮率",
    prop: "floatRate",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "工规证面积(平方米)",
  //   prop: "certArea",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   append: "平方米",
  // },
  {
    label: "中标单价(万元)",
    prop: "bidPrice",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "中标通知书文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "中标通知书发放时间",
    prop: "bidNotificationSendTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "中标单位",
    prop: "bidderEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "标底金额(万元)",
    prop: "bidBaseAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "中标金额(万元)",
    prop: "bidWinAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "下浮率",
    prop: "floatRate",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "工规证面积(平方米)",
    prop: "certArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平方米",
  },
  {
    label: "中标单价(万元)",
    prop: "bidPrice",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: "", // 项目名称
  projectCode: "", // 项目编码
  // stageProgress: "", // 阶段进展

  documentNumber: "", // 中标通知书文号
  bidNotificationSendTime: "", // 中标通知书发放时间
  bidderEntity: "", // 中标单位
  bidBaseAmount: "", // 标底金额
  bidWinAmount: "", // 中标金额
  floatRate: "", // 下浮率
  certArea: "", // 工规证面积
  bidPrice: "", // 中标单价
};

export const rules = {};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;
